using System;
using System.Web.Security;

namespace Be.Timvw.Framework.Web.Security
{
    public class MockMembershipUserGetPasswordException : MembershipUser
    {
        private readonly string username;

        public MockMembershipUserGetPasswordException(string username)
        {
            this.username = username;
        }

        public override string UserName
        {
            get { return this.username; }
        }

        public override string GetPassword()
        {
            throw new ArgumentException("Retrieval of password is not supported.");
        }
    }
}